﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;

namespace ExpenseSystem.Model
{
    [TableName("BAS_SALESPOINT")]
    public class SalesPointModel:NormalModel
    {
        private string _code;
        private string _name;
        private long _regionid;
        private long _depprojection;
        public virtual string Code
        {
            get { return _code; }
            set
            {
                if (_code == value)
                    return;
                _code = value;
                if (!PropertyUpdated.Contains("Code"))
                    PropertyUpdated.Add("Code");
            }
        }
        public virtual string Name
        {
            get { return _name; }
            set
            {
                if (_name == value)
                    return;
                _name = value;
                if (!PropertyUpdated.Contains("Name"))
                    PropertyUpdated.Add("Name");
            }
        }
        public virtual long RegionId
        {
            get { return _regionid; }
            set
            {
                if (_regionid == value)
                    return;
                _regionid = value;
                if (!PropertyUpdated.Contains("RegionId"))
                    PropertyUpdated.Add("RegionId");
            }
        }
        public virtual long DepProjection
        {
            get { return _depprojection; }
            set
            {
                if (_depprojection == value)
                    return;
                _depprojection = value;
                if (!PropertyUpdated.Contains("DepProjection"))
                    PropertyUpdated.Add("DepProjection");
            }
        }
    }
}
